package com.seed.core.enumeration;

import com.mybatisflex.annotation.EnumValue;

/**
 * set -> get, set
 * sets -> gets, sets
 * update -> edit, update
 * updates -> edits, updates
 */
public enum ActionType {
    page("page", "分页列表"),
    save("save", "保存"),
    saveBatch("saveBatch", "批量保存"),
    update("update", "更新"),
    updateBatch("updateBatch", "批量更新"),
    detail("detail", "详情"),
    get("get", "获取"),
    getBatch("getBatch", "批量获取"),
    set("set", "设置"),
    setBatch("setBatch", "批量设置"),
    remove("remove", "删除"),
    removeBatch("removeBatch", "批量删除"),
    stat("stat", "统计"),
    importExcel("importExcel", "导入excel"),
    exportExcel("exportExcel", "导出excel");

    private final String value;
    private final String label;

    ActionType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    @EnumValue
    public String getValue() { return value; }

    public String getLabel() {
        return label;
    }
}
